/// 绑定主机地址
pub const HOST: &'static str = "127.0.0.1";

/// 绑定端口
pub const PORT: &'static str = "8091";

/// 数据库地址
pub const DB_HOST: &'static str = "localhost";

/// 数据库名称
pub const DB_NAME: &'static str = "rust_vlog";

/// 登录用户
pub const DB_USER: &'static str = "rust_vlog";

/// 登录地址
pub const DB_PASS: &'static str = "rust-x-lsl";

/// 获得数据库连接字符串
pub fn get_conn_string() -> String { 
    format!("mysql://{}:{}@{}/{}", DB_USER, DB_PASS, DB_HOST, DB_NAME)
}
